package com.search.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.search.model.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Lenovo
 * @Description: TODO
 * @DateTime: 2023/9/14 14:46
 **/
@Mapper
public interface TagSearchMapper extends BaseMapper<Tag> {

    /**
     * 删除视频标签关联信息
     *
     * @param Id
     * @return
     */
    int deleteContactById(@Param("Id") Integer Id);

    int saveTagPublishList(@Param("tags") List<Tag> tags, @Param("publishId") Integer publishId);

    int[] selectTagByMediaId(@Param("mediaId")Integer mediaId);
}
